<?php

class ver_handler implements handler{
	function run($task,$params=array()){
		global $core,$result,$user,$document;
		$id=explode("/",$task,2);
		$id=$id[0];
		if(intval($id)){
		$document=$core->getDocument("ver.html");
		
		$core->loadClass("posicion");
		$result=array(
			new posicion($id)
			);
		
		if($document){
      		$document->addScript("http://maps.googleapis.com/maps/api/js?sensor=true&libraries=places&amp;language=es");
			$document->addStyle("css/ver.css");
		}
		}
	}
}
